﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

class ExaminationMoveDestination : MonoBehaviour
{
    public ExaminationMove m_Boss = null;
    public GameObject m_CheckObj = null;// 检查这个对象是否到达终点
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (m_CheckObj == null)
            m_Boss.OnSucceed();
        else if (m_CheckObj == collision.gameObject)
            m_Boss.OnSucceed();

    }
}